// src/router/index.ts
import {createRouter, createWebHashHistory} from "vue-router";

const routes: any = [
    {
        path: "/",
        redirect: "/index",
    },
    {
        path: "/index",
        component: () => import("../view/home/index.vue"),
        name: "Index",
        menuShow: true,
    },
    // 添加工作流路由
    {
        path: "/workflow",
        component: () => import("../view/workflow/index.vue"),
        name: "Workflow",
        menuShow: true,
    },
];
const router = createRouter({
    history: createWebHashHistory(),
    routes: routes,
});

export default router;